package com.demo.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class TestViewController {
    @GetMapping("/test1")
    public String test1(@RequestParam("msg") String msg, Model model){
        model.addAttribute("message", msg);
        return "test-view";
    }
    
    @GetMapping(value = "/get")
    public String getUserByJson(){
        return "test-view"  ;
    }
}
